package cn.shop.cloud.hystrix;

import cn.shop.cloud.common.Result;
import cn.shop.cloud.domain.Good;
import cn.shop.cloud.feign.GoodFeignApi;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @program: shop-parent
 * @ClassName GoodFeignHystrix
 * @description:
 * @author: Mokio
 * @create: 2024−12-24 20:28
 * @Version 2024 2.2 ; jdk1.8.0_181
 **/
@Component
public class GoodFeignHystrix  implements GoodFeignApi {
    @Override
    public Result<List<Good>> queryByIds(List<Long> ids) {
        //兜底数据
        System.out.println("--------------兜底数据 ----------------");
        //添加发邮件的功能
        return null;
    }
}
